package hotel.switchs.oversea.online.mapper;

import hotel.base.oversea.repository.MyMapper;
import hotel.switchs.oversea.api.entity.SwitchCreateRoomFailureEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SwitchCreateRoomFailureMapper extends MyMapper<SwitchCreateRoomFailureEntity> {
    /**
     * 根据美团酒店id +美团产品id
     * @param mtHotelId
     * @param mtRoomId
     * @return
     */
    SwitchCreateRoomFailureEntity selectMtHotelIdAndMtRoomId(@Param("mtHotelId") int mtHotelId, @Param("mtRoomId") int mtRoomId);

    /**
     * 根据酒店id+售卖房型id 获取售卖房型名称
     * @param hotelId
     * @param roomTypeId
     * @return
     */
    SwitchCreateRoomFailureEntity selectRoomNameByHotelIdAndRoomId(@Param("hotelId") Integer hotelId, @Param("roomTypeId") int roomTypeId);
    /***
    * @Author: lmf
    * @Date: 2020/12/22
     * 删除缓存
    */
    List<SwitchCreateRoomFailureEntity> deleteRoomFailure();
}
